package com.qmth.gkwb.web.view;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.qmth.gkwb.data.entity.BKKS;
import com.qmth.gkwb.data.repository.BKKSRepo;

@RestController
@RequestMapping("view/ks")
public class BKKSController {

	@Autowired private BKKSRepo ksRepo;
	
	@RequestMapping(value="{id}",method=RequestMethod.GET)
	public BKKS getById(@PathVariable String id){
		return ksRepo.findOne(id);
	}
}
